package Day07;

public class Phonedemo {
    private String brand;
    private String color;
    private int price;

    public Phonedemo() {
        System.out.println("无参构造");
    }
    public Phonedemo(String brand,String color,int price){
        this.brand=brand;
        this.color=color;
        this.price=price;
        System.out.println("有参构造");
    }

    public void call() {
        System.out.println("打电话");
    }

    public void sendMessage() {
        System.out.println("发短信");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
